fix npe in odd case where 'next' is non null, but next.getValue() IS
null.  I'm not sure yet when this case would occur, but either way it
needs to be accounted for.