handle undefined value in Job.get_input_value()
add comments, code gardening.