Fixed swift data bag search throwing exception when swift is not deployed

Added checking for swift deployment