I finally had time to get back to this. I have also upgraded to the latest version of HA in the meantime. The issue still exists and really has made this type of automation unusable on my system.
Could the returned OK from the http command be the issue?