Robustness of solutions of the inverse problem for linear dynamical systems with uncertain data