Fix check for GEPs with scalar indices
When a GEP has a scalar index, indexPackets holds a null pointer. We
were mistakenly not checking for that, we were instead checking for it
to hold a SimdPacket that holds a null pointer, but that cannot happen.
This PR corrects the check.