adapt detect readonly for IE8 (refs #3765)