[ros-diffs] [weiden] 20079: fixed some missing NULL checks, reported by M Bealby in bug #1110