Fix errors when no assets are defined.