Get value of the first column of the first row, then close ResultSet
null if there is no rows
from JDBC