utils.js: fix logic in fetchSkeletons

Was unblocking the UI too early.