Update FileManagerModel.js

throw exception on invalid getModel calls.