Added exception handling in the case that the row does not exist.