Make is_hrule failsafe by not depending on buf.len() checks.