Avoid exception in previous_entry/next_entry when publication_date is missing

This could only occur when the model was created manually at the shell.