Add a guard against an invalid item pointer, and don't try to deduce construction labor for item_lost jobs