Update clone.js

Small if check - prevents errors in (at least) Chrome when module is not avialable.