clear functionmanager at the beginning of doc::clear to avoid crashes
app clearing: clear doc after virtual console

This fixes QLC+ hanging up when clearing contents
with a vcaudiotrigger in the virtualconsole
Merge pull request #420 from plugz/clear-contents-fix

Clear contents fix