Check for properties before using

Allows building without them being present in gradle.properties