A note on endomorphisms of hypercentral groups