Update backbone.statemachine.js

Let's make sure that the element we're attempting to change the class name of actually has the className attribute.  The window element, for example, does not. 
Merge pull request #22 from secondstory/master

Error when using StatefulView on a window element.