force users to have id when reading usersplaces

This is a hack which should be removed as soon as possible, because
it inserts unuseful data (anonymous users) to database.

It fixes usage of models.userplace.UserPlaceManager.for_user_and_map_prepared function.
speedup database flush during deriving knowledge data