check if media file already exists

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