Keep consistence in pendings when exception is thrown during method pop()
Add test if jobs do not stuck in pendings
Merge branch 'pull-761'

Conflicts:
	test/src/test/java/hudson/model/QueueTest.java
Merge branch 'master' of github.com:jenkinsci/jenkins