fixes #449 - dont store references to decorators if their definitions are missing