Avoid NRE.

Change-Id: I999eef2a8e272860a4c613c693cdb8c566543523