added null property check to gradle so travis should pass