Make sure activityClass is never null.