Error checking on the resize state

Add condition to ensure columns array exists on the oState object before accessing.