test_locations: don't warn if the current location is null

It's a perfectly legitimate condition when clearing the entry

https://bugzilla.gnome.org/show_bug.cgi?id=732728