Handle changes of "moz-collapsed" attribute to correctly update after exiting from full screen mode

For #546.