mediaFilePath at this point includes the directory structure, so it's possible for old-style installers not to trigger this condition.  Better would be to go ahead try and parse the path and a) make sure there are no parse errors and b) the resulting ID is the right length.