fix: missing null check for removeFromTree()

Signed-off-by: marcel.dausend <marcel.dausend@uni-ulm.de>