[ELF] Fix MSVC warning on conversion from enum to bool.

This function returns a boolean value, so returning STT_COMMON does not
make sense.