Don't throw `AttributeError` when opening files

When opening files `MagentoThemer.AddContentView` would be of type `None`, which
throws the following error when trying to access `id` on it:

    AttributeError: 'NoneType' object has no attribute 'id'