Fix #61

This prevents an Invalid error message for a key being required when in fact it has been passed in but is invalid.