FLEX-34390 - added null check on skin.currentState

Signed-off-by: Erik de Bruin <erik@ixsoftware.nl>