[uart] Fix weak handler

Fix uart handler correctly with use of weak function.