fixed bug in profile build

Habits controller action index was messing up the current user's profile. Even if a user had a profile, the build profile line reset the current user's profile to nil.