https://github.com/oblac/jodd/issues/108
Added test case (closes #108) and changed Cookie method to 'isSecure'
Added NPE check (fixes #107)