Clear the handler and title caches when we reset the context

Change-Id: Ieaf0950557421c6c7f0bdf43d07b168e95233372