Fixed None object comparison for metadata backend in Python 3.