Fix bug with missing page containing invalid characters in the id field causing the collapse not to expand