Code monitors: fix error for nil results
Created by: camdencheek
The DB requires that the results column is non-null, but this fails when
we have an empty array. Elsewhere, we just check for nil
ness and instantiate
an empty array instead, but I missed this spot.
This was causing runs with no results to show errors. Runs with results will still work as expected.
Test plan
Added a test to cover regressions.