Fix when load statistic, include versions that are active and readonly.

Fix when load statistic, include versions that are active and readonly.
https://bugzilla.redhat.com/show_bug.cgi?id=1033446#c6