Fixes bug where Chrome won't allow frameElement value to be changed.