Avoid Uchiwa crashes

Fix https://github.com/sensu/uchiwa/issues/100