fix(admin): fixed javascript error on toggle simple cache checkbox

Fixes #6529