Add missing else directive

Add missing else directive to fix compiler warning: control reaches end of non-void function