[GEOT-4957] NPE in Attribution parsing (Backport on 12.x)

Please look at the following JIRA: https://jira.codehaus.org/browse/GEOT-4957. Backport on 12.x branch.