Fixed the last of FindBugs detected bugs

Unchecked cast now throws an exception (it really *must* be a Button),
and removed unused account field.