Made fixes for Coverity issues 1147767 and 1147704.
1147767 fixes an uninitialized data variable in the item class
and 1147704 fixes a ineffective check against NULL on an array.
TRQ-2424