beacause when minisize the Starling enterframe also call render() but the stage.stageWidth and stage.stageHeight == 0 it will error so we modify when the minisize the enterframe wont call render()