FindBugs warnings, increased behavior consistency

- Updated code to fix FindBugs warnings.
- Updated code to check for type attribute in action update method.