Modified Implicit cast from DirectoryInfo to DirectoryInfoBase to correctly handle null values

Modified Implicit cast from DirectoryInfo to DirectoryInfoBase to return null if asked to return a null value. Previously it would return a DirectoryInfoWrapper wrapped around a null value which is definitely not what we want!

Signed-off-by: Martin Evans <martindevans@gmail.com>