Modified the implicit cast from DirectoryInfo to DirectoryInfoBase to correctly return null if asked to cast a null value

Signed-off-by: Martin Evans <martindevans@gmail.com>