Fix for issue 824

This is my proposed fix for issue 824: https://code.google.com/p/wro4j/issues/detail?id=824