Prevent javascript errors when no note has a location.