Check for parent path set to string primitive to prevent Safari error (Attempted to assign to readonly property) while in `use strict` mode.