Bug/duration not rendered if erroneous

### Description
  - Duration no longer returned in response payload if the incoming duration was invalid.
  - Fixed the check of RegisterProviderRequest which was incorrect.
    This fix improves error responses for ngsi9 convenience oprrations.
  - Some more buffers moved to external files.