WELD-942: corrected the easiest medium findbugs warnings