Avoid errors when generating a notification view or new post