Check for null registration entity when getting current registration with previous auth code.