Some FileIDs that may be used by PlistDiagnostics are not added while building a list of pieces. This leads to assertion violation in GetFID() function. This patch tries to add such missing FileIDs. It also contains small refactoring of this piece of code.
Authors: Aleksei Sidorin, Ilya Palachev.