don't plot empty charts

Change-Id: I6336da3e075532f6bd19bf66f8b9d2df32f36224
Reviewed-on: http://review.couchbase.org/28635
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>