added InvalidDataApiException autoload item
whitespaces clean-up
added fallback
CR changes: instead of casting object to array return array with an exception instance
Merge pull request #5443 from Wikia/HG-385

HG-385 P2 fix: added InvalidDataApiException to autloader and added fallback to navigation exception