Check for defined var before setting style

This is to stop an error from occurring when showStepNumbers is false.
Merge pull request #7 from piascikj/patch-1

Check for defined var before setting style