Fixed an uncatched NumberFormatException when reading a configuration.

Signed-off-by: Xunkar <xunkar@jenmaarai.com>