Fixed agent report NPE if agent information is null.