[backport] Fix bug #1154: Nav-Menu broken affter submit any of the two project profile forms