Don't try to deref NULL for empty matrices