Made it so the "Clearing hub invocation...." log is only logged if callbacks are available to be cleared.

#2366
Merge branch 'release' into dev