"setPackageManager doesn't work for an activity."

Fixes the problem stated here: https://github.com/pivotal/robolectric/issues/351