Fixed a bug where an exception was thrown when the installer context cast is trying to set a readonly property