null check for script before rule creation
Merge branch 'dev'