Don't use g_assert_nonnull

(Because it's only available in glib >= 2.40.)

Signed-off-by: Sharif Olorin <sio@tesser.org>