Fixes crash when rotating display on login screen on 2.3 devices.