Reverse the check for a selection vs. actions

If there are no checkboxes, but the form still submits (e.g. a replicable widget with a SwatButton), this will throw an error. Instead, check first that the form has actions before looking for the selection.

This came up while developing a new index page and isn't currently testable anywhere.