Fix nullderef when ConstantReference::Resolve fails

This is a regression due to aosp/1538630.

Bug: 176888762
Test: aidl_unittests
Change-Id: I3e608f128ecc3bf5b58db4e90069c70293536e5b
3 files changed