Log warning instead of raising error

The specification was changed for two methods in the case of getting
obviously invalid arguments:
Parent#delete
Parent#value

These methods were also refactored to reduce code duplication.