Fixes issue #1395

Fixes this issue: https://code.google.com/p/libgdx/issues/detail?id=1395

The user provided steps to get a 100% repro, his suggested fix seemed correct.