fixed nullpointer exception

fixed handler exception while generating captcha

Service exception executing action +java.lang.NullPointerException