Set appid correctly when constructing from index

Set the desktop ID on GDesktopAppInfo instances created from the desktop
file index so that _get_id() doesn't return NULL.

Remove some debugging statements to stdout.