Fix traceback on instance homepage.