Fixed index out of range exception when using a null skin for a control