Rescue an error if a text is nil