Impove bemtree error handling

...so you can do local error handling inside blocks and global inside process,  which calls BEMTREE.apply.
[Issue 594](https://github.com/bem/bem-core/issues/594)