Changed throw to return Null string to prevent exceptions from being unhandled.