instead of returning null in exception, return empty string