Corrected nullpointer and numberformat exceptions for ridehistory when no user exists or a given user does not have ride history