bc_file: Check if buffer is empty

Change-Id: Ife945f74098f3f5ef2138c4e1f861394c20fb3a6
Reviewed-on: http://review.couchbase.org/32910
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>