Fixed issue where barrier not removed when extension disabled.
Previous MAX_THUMBNAIL_SCALE value should be saved and restored rather than the expected default value.