Though this specific case wasn't mentioned in the original issue, I found this very-much related bug while fixing the original one. The code diff for fixing this is on line 198 of cli.js