Fix for DOMAPI issues in strict mode.