Add newly created PackageImpl to parent's subpackages.
... only if the parent is not null.
Merge pull request #2020 from erwinwinder/master

Fix for issue #2016
Merge pull request #2019 from fdlk/master

Add newly created PackageImpl to parent's subpackages.
Merge branch 'master' of https://github.com/molgenis/molgenis