Fixed a bug in the implementation of addChildAfter

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