Fix for issue #1796

Checking whether window.Handsontable is defined will overwrite the "Handsontable" variable when including handsontable with commonjs.