Merge "Use context only after it is available."
am: 1432364e3e

Change-Id: If79aaaa0978e8801ecfdfa6d1fcca38e5dc919e2