Fix to report proper "Unable to resolve symbol" error instead of NPE