NXP-14478: fix NPE with automation call from rest api