Catch InvalidKeyError in static_tab view.

LMS-11189