Fixed the error that occurred when using a ResultSet and checking for no
results.