Ensure that heartbeat configuration is completed before raising next event

Change-Id: I0389212c2b35508ef7637e59c610fac1cdbaca45
Reviewed-on: http://review.couchbase.org/42449
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>