CLI output formatter: handle null resources