Checking for an item collection successful load before clearing collections to avoid json error.