Fix EOF token crash

Fix a crash when run on one of our libraries.
Tested on AFNetworking to ensure it does not break anything else.