Avoid NPE on unsupported file