Octave Interface: Fixed two issues with setGridProperty
Missing argument check and wrong dimension check
p4#: 21828