g_strcompress: check that source is non-NULL rather than just crashing