While working on
MDL-28483, I accidentally found this issue.
When an invalid url is entered in the profile of an user, Moodle just discards the url and doesn't save anything. It doesn't even notify user about the error.
Expected: An error prompt to notify user about the issue.