Fixed crash when using state setters.
Fixed crash when using state setters.

beautify/beautify-ios,beautify/beautify-ios,ScottLogic/beautify-ios,ScottLogic/beautify-ios,ScottLogic/beautify-ios,beautify/beautify-ios,ScottLogic/beautify-ios,beautify/beautify-ios