fullscreenElement can be null

Or, it actually should be null in this case.
http://www.w3.org/TR/fullscreen/#api