Fixed ordering issues in Unit of Work publication

Under certain circumstances, this issue could even lead to events not being
published at all.

Issue #AXON-208 Fixed