[WFLY-2357] Use the correct check before adding runtime steps.