Prevent possible 500 error for blank texts