(#16178) Handle the case where temp_answer is false but defined.
Consider:
` class foomodule::params { $myitem = false ... `
The current code won't handle this because if temp_answer is the same
as if false.
This commit changes it to use temp_anser.nil? instead.