Null pointer exception for thumbnail value not available handled