Fix bugs in metric search and options updates

In this pull request:

- Reset searching flag on error in JavaScript
- Show top-level metrics when search string is empty
- Do not hide metrics when search string is short
- Remove rather verbose JS logging
- Do not overwrite custom graph options