Call the getRows() function to make sure we have some data queried when calling getFirstRow().