SLING-3650 - Logging in to sling ftpserver throws IllegalStateException

Applied patch, thanks to Amrit

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1605719 13f79535-47bb-0310-9956-ffa450edef68