Fixed possible crash caused by immediately finished operation

- Adding a finished operation to a queue throws an exception