avoid errors with jQuery in noConflict mode
safer comparison with null
Merge pull request #15 from leonid-shevtsov/master

Avoid errors with jQuery used in noConflict mode