fix presave bug
#2929441: Don't use drupalSettings
Fixed bug where map was loading from wrong variable in certain cases.
PHP7 Support.
Warning: There may be a change of behavior for your use case due to #2923632: Allow references to be removed on sync.
Previously, in the case of entity reference, the check if the entity was managed (reminder, we exclude users and config entities from sharing) was done on the JSON returned by the JSON API.