Fix exception that is raised if after_commit callback hooks are absent