Really return null if locale does not exist
Added missing DOM functions

The whole test suite now runs successfully even if E4X is not supported