#925 - fix layer visibility toggle issue in firefox 27/28