ensure metadata is defined when reading a notebook

I think this can only happen for notebooks written by 0.13-dev, but it's causing issues with nbconvert on some notebooks.