[BUG #7247] Minor handling of wrong usage of Decorator