Fix crash when no parameters are provided by protecting against out of bounds array access when accessing first parameter. Now displays an error message instead.