Ensure fns in electric-layout-rules are called in right position

* lisp/electric.el (electric-layout-rules): Ensure rules are
called from right spot.
1 job for master in 60 minutes and 1 second (queued for 2 seconds)
Status Job ID Name Coverage
failed #590


Name Stage Failure
test-all Test The script exceeded the maximum execution time set for the job
  GEN      lisp/minibuffer-tests.log
ELC lisp/mouse-tests.elc
GEN lisp/mouse-tests.log
ELC lisp/net/dbus-tests.elc
GEN lisp/net/dbus-tests.log
ELC lisp/net/gnutls-tests.elc
GEN lisp/net/gnutls-tests.log
Pulling docker image gitlab/gitlab-runner-helper:x86_64-f100a208 ...
ERROR: Job failed: execution took longer than 1h0m0s seconds