Avoid UnmappedInstanceError if c.user is None

Addendum to afa02732f672af01ef33dbaa1520beabdf577256