Only try to load the previous gamemode if it isn't null.