check if PDF exists before calling plotter

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