Added a check for parents on a form element before assuming it exists.

The VBO select all checkbox does not have parents and so would cause a php notice before this fix.
added a comment for posterity