Revert "simplify Console.getDefaultReturnValue"

This reverts commit 15ab9b7b4def100f84adae64ac0a760fbeeb5508.