Fix fullscreen API usage

document.fullscreenEnabled only communicates whether fullscreen
capability is available, not whether fullscreen mode is active. Fix this
misunderstanding and improve compatibility with emerging fullscreen
standard and variants.