Preventing NPE. Throwing IllegalArgumentException instead when file not found