Fix issue when generating HTML headers where only master plugins were returned