BQ: Handle buffer allocation failure
am: 0a06809457

Change-Id: I8c9e660e93febe88d370f38c34a0d3e92641c320