Handle null arrays when retrieving array size

This fix is related to the for-loop array being null
The instruction that handles retrieving the array size of the for-loop array should handle a null array

Fixes the bug:
http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-4639

@ke-yu @lukechurch