Use asynchronous require for IE 7.

Also, don't close if hash is empty.