Ensure a real platform is present for Android detection.

Closes #228.