scripts: dts: gen_driver_kconfig_dts: Skip empty yaml files

The YAML parsing will currently return a None-type if no input data
is empty, and the subsequent check for a substring will cause an
exception.

Signed-off-by: Allan Norgaard <allannk@gmail.com>
1 file changed