Made parameter doc builder fail gracefully

If a parameter string is specified incorrectly, made it so
SwaggerAPIDocumentation fails gracefully instead of exploding.