RAZ-2890: Search throws error if file_type column returns NULL
Tweaked query to filter out nulls for file_types