It has been verified that this bug was introduced with we added support of nested stacks, which has not been made available to 5.4. Closing this issue.