Fixing crasher when log URI is empty or null.