In contrast to the proposed patch I preferred to prevent future issues as well
by improving the function get_user_attribute itself.
However, thanks to mbunkus for testing hash refresh better than me before.