Ensure non-void functions return a value.