fixed segfault when the linearized mooring stiffness matrix fails