Avoid NPE in API handler when dagnodemap is absent in the backend for a ...

...given workflow