Makes displayPartialButton not break on anonymous users.