Fixed parser errors that occur when a plugin alters the spec.

Change-Id: I3d6b0c3665e82c2961acc0afcd2644ae0a35d2b3
Signed-off-by: mstegmaier <michael-1.stegmaier@uni-ulm.de>