prevItemId and nextItemId return null instead of throwing
IndexOutOfBoundsException.