Fix console error

If the Headhesive constructor is called on a node that doesn't exist on the page, a console error is thrown, because cloneNode is then called against `null`. This change suggests checking that `elem` is set before calling the `init` func.