Fixed crash when trying to build pages for broken packages