Fixed some functions where numrows() in returned queries weren't checked: