Assert when we are registering too many tasks.