Fixed logic in valid_value checkings while submitting an event
Merge branch 'master' of github.com:instedd/cdp