Changed getContentIfFile to return null when file does not exist

I was running into issues where empty arrays where getting returned when the file did not exist. The error was never thrown because getContentIfFile was returning the path string.