fix PHP warnings on marker edit page if option "add directions to popuptext" was set to false