refs #10040 This should fix it.

Also changed transfer of shared pointer as const reference to subroutines to avoid unnecessary ref count increase
Merge branch 'bugfix/10040_wsInADS' into develop