Merge cleanup.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev
trq-2378 Check ptask for NULL before dereferencing it.