Fixed error on shortcode: if has no posts it was trying to show timeline with a html content but it was expected a json content