FIX: prevent executing the $apply when another is in progress

Checks is a digest is been executed and prevent calling the $apply