Ensure that intent is set correctly when the MainActivity is restarted with a new intent