Fix broken assert (if input allocation is NULL).
Fix broken assert (if input allocation is NULL).

Change-Id: If02e86eee4ec059402edd6f8c408fd89b248bc80

xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base,xorware/android_frameworks_base