Graceful check for class attr in form.fill.

Corrects a problem where an element with no class would return None for
el.attr('class'), which then confused the re module.