Add BadTaskStateError to _insert_tasks Error list

Add BadTaskStateError to except list in _insert_tasks so that when a
task fails to enqueue with message 'Task has already been enqueued' in a
BadTaskStateError, that error does not propagate upwards.

Also lexicographically ordered the errors.