If not before_row and after_row gets set to an empty string when defining the field it will cause errors when in the admin ui. The code for prepending and appending html to the fields only do .= and never initializes the strings, only append to what is already there. A check should be implemented to initialize the string if it's empty.