Displays better error message for xpath parser limitations

As per this issure: http://manage.dimagi.com/default.asp?61313

Not all expressions containing `instance(` will raise an error on parse, so this message is only shown when they do.  Now unparsable expressions containing `instance(` will save properly and cause a javascript alert warning that they were not validated.