Handle session expired for UIDL requests correctly (#11705)

Change-Id: I497e3b96387d16d9cb31fa9fce6daf0650af458e