[Helpers] Add a new helper method: assertGError().

Cutter's gcut_assert_error() takes 'GError *' and cannot accept
'const GError *'. So I created this function.