Indeed, there was something wrong there.
1. I had to adjust the core plugin code to respect the custom code, it is actually an improvement so I will include this in the upcoming release, so you don’t have to worry about it. The results should display the attachment parent posts as well now.
2. I made a tiny adjustment to the snippet – now instead of the comments the posts are fetched as well.