elementary: Fix dereference of null return value
elementary: Fix dereference of null return value

Summary: This fixes Coverity CID1261370. strrchr can return NULL here,
so we need to check that 'p' is valid.

@fix

Signed-off-by: Chris Michael <177aeddb9e34930a357ecd8dd2d21c80fe280c85@samsung.com>

tasn/elementary,tasn/elementary,FlorentRevest/Elementary,tasn/elementary,rvandegrift/elementary,FlorentRevest/Elementary,tasn/elementary,rvandegrift/elementary,FlorentRevest/Elementary,rvandegrift/elementary,rvandegrift/elementary,FlorentRevest/Elementary,tasn/elementary