idr: fix NULL pointer dereference when ida_remove(unallocated_id)