LILY-209: prevent server error on invalid email account credentials