fixed possible null ref exception in build status