I recognize this is a quick fix, but try to only use try/catch blocks to deal with [exceptional behavior](http://programmers.stackexchange.com/questions/107723/arguments-for-or-against-using-try-catch-as-logical-operators), and then only wrap the code that will actually throw the exception in the try block. 

In this case, you could check to see if the cookie exists and return an empty response if it doesn't.