Support empty extensions in a more sane manner.