Fix undefined values causing "no result" on all posts in Firefox