Added fixes for coverity issues 1150822, 1150821 and
1147706. TRQ-2424
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev