Added safeguard for PerformXPathQuery()

Making sure that app won't crash if nil is passed for query parameter.
Merge pull request #43 from draganjovev/master

Added safeguard for PerformXPathQuery()