[Bugfix] fixed NPE when Certificate is created with null properties