Protect against resolve call on empty location.