Check for defined var before setting style

This is to stop an error from occurring when showStepNumbers is false.