OHM-444 Prevent polling when last task req is pending
OHM-444 Prevent polling when last task req is pending

This commit adds a flag (lastPollingCompleted); and polls the next task only when the last polling request is completed.

jembi/openhim-console,jembi/openhim-console,jembi/openhim-console