Fixed error handling in getSensuEvents path