Solve issues #1 and #3 for NGSI Event Broker

#### Reviewers
@jesuspg 

#### Description
Related to issues https://github.com/telefonicaid/fiware-monitoring/issues/1 and https://github.com/telefonicaid/fiware-monitoring/issues/5

#### Testing
All unit tests passed.