Fix NPE for analysis messages without origin.