Add conditional test to clearAllFromCookiesMethod

Conditional check for $document.cookie to prevent uncaught exception when entering clearAllFromCookies method from clearAll() method when local storage does not exist