Check for empty os-release file, fixes #7885

This will check if the os-release file is empty and skip any further investigation for distribution release information. In particular funtoo might provide an empty /etc/os-release which causes the error described in #7885.