fix: workaround for some systems where num_count returns 2 instead of 1 row when there's only 1 row (which prevented the creation of constrained custom fields on those systems).

Signed-off-by: Stephen L. <lrq3000@gmail.com>