checking for NULL before including base variables in deployment hash