Issue #2528498 by Wim Leers, Jacine, mortendk: Only emit Quick Edit data- attributes when actually necessary