Relying on this statement isn't a good idea. In my GAE environment (not local) APPENGINE_RUNTIME doesn't exist is $_SERVER.
Removing it works fine. yay!