call callback immediately if no deferred tasks were added (restore backwards compatibility)