FIX: navigation toolbar don't works with first displayed resource (index = 0).
CHANGE: improved code for detecting hidden resources.