Added error handling for missing input value.

Signed-off-by: Phillipp Ohl <phillippohl@gmail.com>