Remove a lot of pointless g_return_if_fail() checks. (#169859, Morten