Fix error when accessing profile for Author role.

Closes #4416