Expose Path.isValid

BUG=
TBR=rafaelw

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