refs #5054 if no period should be kept do not append where clause to prevent mysql error