registrar: set current time before checking registered() conditions
- patch by Dmitri Savolainen, closes GH #1267
(cherry picked from commit 5b5d55bd377b0572efaceeb0feb164bf5dd26bf0)
(cherry picked from commit 438e11a04c488a8f53555c54d1a12b50213cd342)