Insert empty range checks

When empty range with null is provided, we need to check first
since pcmpxstrx doesn't take null pointers.