DDF-887 added in logic to prevent NPE if Metacard.METADATA attribute is ...

...null.  If it is null a SchematronValidationException will be returned now.