Fixed a bug, which caused a NullPointerException when using android share menu.
Waiting tasks are not displayed in the pending tasks anymore.
Added 'task wait' for waiting tasks.