fix issue where parameter doesn't have a structure definition and fails on NPE