Stop executeDeletions when there is nothing to to delete anymore

A small improvement in `UOW::commit`. Only continue executing the for-loop when there's something to delete. This may save quite some calls to `UOW::executeDeletions`.