[BISERVER-8700] NPE check on getCookies.