Handle null file handles in UIDGenerator::_destruct()

Change-Id: I92f874e610b2ea32d34aeb35ddd4069fe0d721fc
Merge "Handle null file handles in UIDGenerator::_destruct()"