Fix for java.lang.IllegalArgumentException on null parameter type

Fix for issue: https://github.com/robolectric/robolectric/issues/1106

Add better error message on parsing unresolved resource.