Harden against null path names.
Added stat method to FileResource and refactored RubyFileStat to make use of it.

This way RubyFileStat doesn't need to do any more custom logic for jars.