Fix a bug causing an exception when autorelease was requested.
This happened when the last pool was released before.