Issue #1863996 by markpavlitski: fix exception in memcache-session.inc