Applying for an ESTA is no problem since you need an ESTA when travelling on an NIE as well. I had ESTA cancelled when I checked in online, but I could still travel. Problem was that the system automatically canceled my ESTA once my passenger details were transferred upon OLC. Now I check in at the desk and never had a problem again.