Fix errors raised on reports which use --separate-models option

Warning_code was missing, and the fingerprint method on warning relies
on it always existing. During the reporting phase it would raise an exception trying
to "sprintf" the nil warning_code.