Fixed null reference exception for null parameters
Merge pull request #4 from DullReferenceException/null-param-bugfix

Fixed null reference exception for null parameters