HTML: Handle case where canvas may be missing