fix possible NPE while loading player data.