#52 fixed NPE for optional elements in persistence.xml
#52 added test