After checking further, it looks like the following macro content will also trigger the issue :
<?php test ?>
In that case, the output of the macro is blank.
Interestingly, the issue does not reproduce when editing a page inline.