Add heartbeat extension bounds check.