404 in email preferences for new users

Register
Submit a solution
The challenge is finished.

Challenge Overview

Describe the bug If there are no email preferences saved yet, the page throws 404.

To Reproduce Steps to reproduce the behavior:

  1. Login with thomas.test1/topcoder123 (or create a new user)
  2. Go to https://community-app.topcoder-dev.com/settings/preferences
  3. See error

Expected behavior The page should load without issues.

Screenshots <img width="1772" alt="Screenshot 2019-03-29 at 11 40 16" src="https://user-images.githubusercontent.com/4612921/55223814-b8395000-5217-11e9-9f9f-8c26b771a9e3.png">



Final Submission Guidelines

Upload the updated code to TopCoder

Review style

Final Review

Community Review Board

Approval

User Sign-Off

Challenge links

ID: 30087713