added check if gameData is valid
Merge pull request #148 from FenrirUnbound/hotfix/undefined-gamedata

added check if gameData is valid