Tweak angular promise detection