#992938 by Dave Reid. Fix the switch user block should use format_username(), which requires full user objects.