dev_areca.cpp: Check cmds index before use (ticket #312).
Make cmds array static const.

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk/smartmontools@3872 4ea69e1a-61f1-4043-bf83-b5c94c648137