fix build with gcc

Signed-off-by: Nuno Lopes <a-nlopes@microsoft.com>
relations with no columns are not always non-empty.
fix that in the udoc datalog backend

Signed-off-by: Nuno Lopes <a-nlopes@microsoft.com>