Added check for property

Simply added verication with hasProperty method. Now build passes successfully. So its basically an attempt to solve the issue: https://github.com/MansurAshraf/gradle-scalastyle-plugin/issues/11