Bugfix when there is an array of length 0
Bugfix when there is an array of length 0

bcharrow/matlab_rosbag,zheng-rong/matlab_rosbag,zheng-rong/matlab_rosbag,bcharrow/matlab_rosbag,zheng-rong/matlab_rosbag,bcharrow/matlab_rosbag