Check that pathinfo() has returned an extension

Prevent the notice that is generated when pathinfo() doesn't return an
'extension' element in Zend_Validate_File_Extension.

Fixes #287
Merge pull request #294 from akrabat/issue-287

Fixes #287 - Check that pathinfo() has returned an extension