fixed issue with the empty file path for the default viewer handler