Addresses issue #1073, Index out of range for HttpOnly/Secure cookie att...

Prevents "Index out of range" exceptions for cookies that include the HttpOnly and/or Secure attributes.