Fix a javascript exception when a user has no context.