Fixed InvalidCastException

Solved InvalidCastException by stopping the file query from using the
indexer which was returning files that had since been moved.