fixed issue where generator would break if no swagger_model dsl was used