Fix a bug when frameState is null which occurs in offline mobile devices
Merge pull request #1136 from pagameba/null-framestate-bug

Fix a bug when frameState is null which occurs in offline mobile devices.