Fix compile time warning for missing if block