Prevents exception when the adjust element code is called when not rendered (this shouldn't really happen though!).