protect against nonexistent ids in page which are being linked to