Fix for error on LogEvent passing a Document
Moved PhaseListener contribution