Fixed errors when no new avatar image was submitted in the form