Fixed undefined method and nil out impersonation instead of raise security error - closes #2