Hey Peter! There are some instances where the metrics are not fetched successfully (especially on the detailed metrics pages).
For this, I suggest you use the data from https://finviz.com/quote.ashx?t=AAPL.
Give this a try with the same method of extracting using the XPath. :)
Hope that helps!