Added check for rs.next in AccountStore