Fixed imageinfo for images from Commons

These don't have pageid, but still should be in the output.