Thanks for your contribution. I chose to implement it differently, by getting the rest API Id from the deployed CloudFormation stack instead. Details here, if you're curious.
The latest version, 1.7.3, includes this change. If it doesn't solve your problem, please let me know.
Could use help with creating the relevant tests, not sure how to do that.