Fixed possible seg fault in KFBallLocalisation.