throw CasterException and improved error message instead of NPE
Merge pull request #227 from igal-getrailo/jira-2553

throw CasterException and improved error message instead of NPE