Fixed an issue that FindBugs reported

Signed-off-by: Niklas Ekman <niklas.ekman@gmail.com>