IDML parser: remove headers that contain only whitespace