Added check to avoid that the validate() function will play null files
Merge pull request #1 from d4rkstar/validatefix

Added check to avoid that the validate() function will play null files