Fix align joint bounds

Check getLimits return value.