Issue #2076033 by juampy: Fixed PHP warning when looking if a REST resource defines authentication providers.