gobject: Convert a debug check from an assertion to a g_critical()
An assertion is harder to skip over, and using a g_critical() can give us a more informative error message.
Signed-off-by: Philip Withnall withnall@endlessm.com
Closes #179 (closed)