Coverity Fix
13138: Dereference after null check
Fix description: Variable upperkey given to idl_new_range_fetch
could be NULL or its data field could be NULL. That is interpreted
there is no upper bound. This patch adds NULL check for upperkey
and upperkey->data. Also, fixing a compiler warning.
Reviewed by Rich (Thank you!!)