If there are no ids in shortcode gallery then return blank string