Add null check to Uri when getting the name to toast am: c000d2ee0e
am: 8e4c181f17

Change-Id: Iab2b316cbe73c36c58cb6d2c00139e047673c254