Fix warning when casting gpointer to gboolean

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
Merge pull request #652 from nkoep/fix-gpointer-to-gboolean-cast-warning

Fix warning when casting gpointer to gboolean