Send cookie in HTML header only if cookies exists. Fixed too properly work
with GlassFish 4, tested with GlassFish 3 and JaxyGen.
Merge pull request #2 from WojtekSzymanski/master

Send cookie in HTML header only if cookies exists. Fixed too properly wo...