Make error messages consistent in FileFormat class
Fix regression introduced by refactoring: Switching hashmaps from Hashtable to Dictionary<T> meant that accessing the hashmap values via the hashmap[] syntax now throws an exception if the key is not present in the table, whereas with Hashtable it just returned null. Fix by using Dictionary<T>.TryGetValue() instead of Dictionary<T>[].