throw exception when calling getProperties from item context.
Merge pull request #294 from sheehan/JENKINS_22708

throw exception when calling getProperties from item context.