Avoid setting undefined cookies

Don't set the content pane size cookies if the value is undefined.