Change as_proplist and as_dict to return empty instead of filling with undefined values