remove unnecessary debug output
(cherry picked from commit d0b337586a7fb1e8dfc099abfc46392f2389b7c3)
small fix to fail gracefully if profile not set on user