fix nmaxevent ==0
fix nmaxevent ==0

paulstapor/AMICI,paulstapor/AMICI,paulstapor/AMICI,paulstapor/AMICI,AMICI-developer/AMICI,AMICI-developer/AMICI,FFroehlich/AMICI,AMICI-developer/AMICI,FFroehlich/AMICI,FFroehlich/AMICI,FFroehlich/AMICI,AMICI-developer/AMICI