Simplify code in cpp and el, but introduce some bugs.

From now on, I will mainly work on cc_lookup.cpp due to the profiling
issues and the error handling.
add a condition test in cc-lookup.el to avoid jumping when no symbol is found.

This is just a workaround and need to be remove in the future.