Fix travis errors. find_by will through a record not found error if the record does not exist.