Minor fix to the server side security interceptor

Fixes a minor issue in the server side interceptor for switching security context