fixed bug which stopped the script after the observer couldnt find #posts