Ignore null valued metrics

This came about when Simon was testing the HTTP endpoint. His payload had null metric values. We were throwing RTEs which wasn't handled graciously by the HTTP handler. We ended up not sending any response to the user. This is a fix to ignore metrics with null values. Added a test case as well.