fixed Exception on getting Spring bean when CsrfTokenRepository is not defined, closes #5