Correctly prevent ArgumentOutOfRangeException on empty cookie

Change the statement to actually prevent it ;)