Bug 2348 - Only allow take picture when previewing

Clicking in rapid succession on the "take picture" button would result in crash, since camera was not in preview mode.