preventing null string in map link