Fixed exception occurring on startActivity() outside an Activity context