Fixed output error if arguments enter less 4

When first start the application without arguments after compiling I got error "NULL pointer".

P.S. It is my first pull request at GitHub.com and I'm not sure I did it right. Maybe cost to send a patch instead of doing fork of repository.