Stop incrementing the file scan if the path isn't for a MIDI file.
Was causing the cache to be reset unnecessarily .