event-factories: Fix an incorrect string comparison
The sense of the comparison was the wrong way round because the return value of g_strcmp0() was being treated as a truthy value.
Spotted by Milan Crha in !3 (closed).
Signed-off-by: Philip Withnall withnall@endlessm.com