fix #1281: Add check for empty/null covers

This is a fix for #1281

There are two checks for cover added.

All tests are passing and there are no new tests included.

Edited by Strom Lin

Merge request reports

Loading