[FIXED JENKINS-22937] Handle anonymous/unauthorized REST API requests more gracefully.

Adjusted REST API visibility settings to avoid serializing long histories at depth=0.