stream: fix javascript error for newly added post