Fixed client segfault on xml without recipe ids.

In case when no id is specified in the report id is still generated, however
the code looking up RecipeData in the hashtable was executed before this
resulting in a NULL pointer dereference and a segfault.