Removed error UI popping up when calling log_error()
for #22785 Allow adding favorite directories to Nuke file chooser
(via https://github.com/shotgunsoftware/tk-nuke/pull/5)
Merge pull request #6 from shotgunsoftware/22785_add_favorite_dirs

22785 add favorite dirs
[minor] Better error handling when not in UI mode.