The usual "a or b"-trick to simulate C's ?:-operator does not work when "false" is a valid value. Fix the code to handle this correctly and add a short unit test which would have caught this problem. Signed-off-by: Uli Schlachter <psychon@znc.in>