Fixed crash on html_select_body() where resource would not be array or PDOStatement. Will now give clear exception of problem