Fixed issue with -template:0 incorrectly removing media from search results