pAvailGrammarSvcs can be reset to 0 on error

e.g. java grammar checker installed and java
disabled at runtime

Change-Id: I84b0e5eeb3ef9c30e153cb5fb65e35270023cd34