Minor bugfix
- Fixed ClassCastException if program(self) is not a RuleElement

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