Catch InvalidKeyError in UserTagsEventContextMiddleware.

LMS-11189
Catch InvalidKeyError in static_tab view.

LMS-11189
Merge pull request #4678 from edx/usman/lms11189-user-api-middleware-exception-2

Catch InvalidKeyError in UserTagsEventContextMiddleware and static_tab view.