Added guards for empty values in case of importing build to intelliJ

While importing project via build.gradle to IntelliJ it complains about values not being set (because they are only set on Bamboo build).

Added guards because of that.