fix reboot after installing an app from market - caused by null pointer exception