[INTERNAL] ResourceServlet: fix for major issue in Sonar

Change-Id: I7b0bb64c93d880cb170bec44f9643b0d2f58a2e9
Merge "[INTERNAL] ResourceServlet: fix for major issue in Sonar"