treating not null and null with new resources of Java 8

similar to: https://github.com/JavaMoney/jsr354-api/pull/24
run test everything was ok