adapt detect readonly for IE8 (closes #3765)