Added null checking for property.

A property name is required when using this task. A BuildException will
be thrown if one isn't specified.