Fix crash when cursor theme lookup failed

meta_cursor_reference_from_theme() may return %NULL on failure,
in which case we currently crash when trying to release it.