Added correct return statement to "rename" and "delete" components

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>