Fix bugs with editor panels on empty editors