Security Fix: Check if Object is frozen already

This is a check added to make sure that Object.freeze(String.prototype)
is not called before. This is a security change which makes sure that
cross-domain websites don't override our String Objects.