Fixes around quick search (loads on click), ObjectDocument (new empty object doesn't cause errors), and directives tree (no errors from quick_search controller)