MT#5215 Replace NoPassword cred handler

In our catalyst version, there is no NoPassword credentials handler,
so use the Password handler instead.
MT#3997 Fix warnings in api/root template.

Check the loop iterator for availablity of prev/next, because they
might not be available at first/last entry of list.