[#61] Handle null pointer scenarios

* Check for 'listFiles()' null cases