Apollo: fix npe when there is no data in the errorelement.
PS5: fix a regression which causes a crash elsewhere.