Handle errors while parsing nested types

This fixes nullderef when there's a syntax error while parsing nested
types.

Fixes: 201578963
Test: aidl_unittests
Change-Id: I677d783f81f41a919e2da13dcbb7da2820378221
2 files changed