Fixed issues with find by path.

refs #6134

Fixed issues with querying by path in JavaScript file browser.