Don't copy non existing definition types.

This saves the creation of a few Hash objects when there are no definitions for
a given type.