net/ice: fix dereference before null check