Issue #2548991 by Wim Leers, Mile23: Remove Bartik's erroneous use of drupal_process_attached(), add tests