Allow the attribute to be nil without making the model invalid

For optional values this will make the object invalid because `nil` won't
match the `UrlFormatter.url_regexp`.

Signed-off-by: Cyrus Stoller <cyrus.stoller@gmail.com>
Using \A and \z instead of ^ and $ in the regular expression