resolves two NullPointerExcetions in cdk-forcefield

Change-Id: Ie47b7b0298b723ef521ae3e6864046690061a137
Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>