Avoid an error when clicking add/delete a related record button using Safari