Fix: Sticky state gets overriden by template state

When the template is active and the job inactive, the job gets re-activated. This PR will fix this.