Prevent "IllegalArgumentException: width and height must be > 0"

In lockscreen background