[fix] Edge case in Component.get function