protect against NoneType dereferencing of build_environment objects in job processing.