Added exception handling for out-of-range errors to bootstrap levmar.