Robustness of the Blandford–Znajek mechanism