Update Anvard.php

protected function getUser fails in the case where a user exists in usermodel but the profilemodel does not exist, as the user->save(), adjustments have been made.