[jb] Fix page crash when stdout is empty