Activity: Add check to target before redirection.

empty() doesn't trigger a notice for missing keys.