Update simpleloader.cpp

Fixed crash in case of parameters error