Skip processing invalid pages in API, better err msg

* Noticed errors in betalabs, fixing message.
* Invalid content should not be parsed

Change-Id: If49c878847f89ef97fe9d847f47f2849dbf14b31
Signed-off-by: Yuri Astrakhan <yurik@wikimedia.org>