Update ToolErrorListener.java

Added fix for CXF-5789
Added fix for CXF-5786
update addError and addWarning to pass message methods they call instead of passing null