Now throwing exception properly if file or resource were not found in page spec