I cannot reproduce this problem.
Adding
<?php
echo '<pre>';
var_dump($custom_fields);
echo '</pre>';
?>
prints out
array (size=3)
'invoice' =>
array (size=3)
'Sent on' => string '2018-04-26' (length=10)
'Test Custom Field 2' => null
'Test Single Choice' => string '' (length=0)
'client' =>
array (size=0)
empty
'user' =>
array (size=0)
empty
which is correct for my testing setup.
Please verify that the contents of your file application/modules/guest/controllers/View.php
matches this file.