JS bug when no cookie was present to read #467