put Path.isValid back

Reverted: https://github.com/Polymer/polymer-expressions/commit/4a4a45a059953bf124ef76c5421ff66385a441eb

R=arv
BUG=

Review URL: https://codereview.appspot.com/13498044