Fixed bug regarding NULL values overrides

Currently, it is not possibly to override a value and set it to the value `null`, in order to set a nullable field in the database to `NULL`. Instead, will be cast to an empty string while replacing it (with `preg_replace_callback()`). This PR fixes that bug.