Fixed 'java.lang.NullPointerException' issue (found for case with
'-maxscenarios' or '-m' key).