Set declaring class to avoid NPE in case of validation errors.
Merge branch 'master' of github.com:structr/structr