Return empty value if we can't parse or null is passed in.