Api: Remove useless activityid check

This will never happen because BaseActivity always initialzes the
activityid to something greater than -1.