More strict checking for input parameters



git-svn-id: svn+ssh://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx-android-demo@12526 94700074-3cef-4d97-a70e-9c8c206c02f5