Remove an eastwood warning in defnp macro

Remove an [eastwood](https://github.com/jonase/eastwood) warning by turning pre/post map into an empty map if it is nil for the defnp macro.