Checks if activity exists for listeners to prevent rare crash